package middleware

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"time"
)

func Cors() gin.HandlerFunc {
	return func(ctx *gin.Context) {
		fmt.Println("Cors中间件开始执行", time.Now())
		ctx.Set("cors", "cors")
		fmt.Println("Cors中间件结束执行", time.Now())
	}
}
